package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class FromSql implements TransformElement {

    private int beginIndex;
    private int endIndex;
    private SpecificRoutineDesignator fromSqlFunction;

    public FromSql(int beginIndex, SpecificRoutineDesignator fromSqlFunction) {
        this.beginIndex = beginIndex;
        this.endIndex = fromSqlFunction.getEndIndex();
        this.fromSqlFunction = fromSqlFunction;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SpecificRoutineDesignator getFromSqlFunction() {
        return fromSqlFunction;
    }

}
